<?php 
	$ced = $_POST['LS00IDADM'];

	require_once ('funciones/conexiones.php');
	
	$sql = "SELECT LS00IDADM, LS03NB, LS04AP1, LS05AP2, LS07NV, LS08SC FROM ls_02_usuarios WHERE LS00IDADM = '$ced'";
	$q = mysqli_query($con, $sql);

	$info = array();

	while($datos = mysqli_fetch_array($q)){
		$nombres = $datos['LS03NB'];
		$apellidos = $datos['LS04AP1'];
		$fn = $datos['LS05AP2'];
		$tel = $datos['LS07NV'];
		$dir = $datos['LS08SC'];
	}

	$info['ced'] = $ced;
	$info['nom'] = $nombres;
	$info['apel'] = $apellidos;
	$info['fn'] = $fn;
	$info['tel'] = $tel;
	$info['dir'] = $dir;



	echo json_encode($info);
 ?>
